package com.njtcedu.microblog.website.user.service;

import javax.inject.Inject;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.njtcedu.microblog.common.entity.User;
import com.njtcedu.microblog.website.user.repository.WebSiteUserRepository;

@Service
@Transactional
public class WebSiteUserService {

	private WebSiteUserRepository webSiteUserRepository;
	
	public User get(Integer userId){
		return webSiteUserRepository.get(userId);
	}
	
	public User load(Integer userId){
		return webSiteUserRepository.load(userId);
	}

	@Autowired
	@Qualifier("webSiteUserRepository")
	public void setWebSiteUserRepository(WebSiteUserRepository webSiteUserRepository) {
		this.webSiteUserRepository = webSiteUserRepository;
	}

}
